package com.hqj.controller;

import com.hqj.entity.Area;
import com.hqj.service.AreaServiceI;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/ac")
public class AreaController extends BaseController<Area> {

    @Resource(name="areaServiceI")
    private AreaServiceI asi;

    @RequestMapping("/findSelect")
    @ResponseBody
    public List<Area> findSelect(Area area) {
        return asi.find(area);
    }
}
